using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Rsd.Faith.Models
{
    [Table("fiscal_分账户明细", "fiscal__fang_wu_fen_hu_zhang", "id")]
    [Serializable]
    public class FiscalFangWuFenHuZhangModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 账户编号
        /// </summary>
        [StringType("zhang_hu_bian_hao", "账户编号", 20, 50)]
        [DisplayName("账户编号")]
        public string ZhangHuBianHao { get; set; }
        /// <summary>
        /// 建账日期
        /// </summary>
        [DateTimeType("jian_zhang_ri_qi", "建账日期", 22)]
        [DisplayName("建账日期")]
        public DateTime JianZhangRiQi { get; set; }
        /// <summary>
        /// 小区编号
        /// </summary>
        [StringType("xiao_qu_bian_hao", "小区编号", 24, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }
        
        /// <summary>
        /// 房屋编号
        /// </summary>
        [StringType("fang_wu_bian_hao", "房屋编号", 25, 50)]
        [DisplayName("房屋编号")]
        public string FangWuBianHao { get; set; }

        /// <summary>
        /// 缴存金额
        /// </summary>
        [NumericType("jiao_cun_jin_e", "缴存金额", 26, 10, 3)]
        [DisplayName("缴存金额")]
        public decimal JiaoCunJinE { get; set; }

        /// <summary>
        /// 增值收益金额
        /// </summary>
        [NumericType("shou_yi_jin_e", "增值收益金额", 27, 10, 3)]
        [DisplayName("增值收益金额")]
        public decimal ShouYiJinE { get; set; }

        /// <summary>
        /// 已使用金额
        /// </summary>
        [NumericType("shi_yong_jin_e", "已使用金额", 28, 10, 3)]
        [DisplayName("已使用金额")]
        public decimal ShiYongJinE { get; set; }

        /// <summary>
        /// 所属周期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 29, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }

        /// <summary>
        /// 期初金额 （计息使用）= 上期期末余额
        /// </summary>
        [NumericType("qi_chu_jin_e", "期初金额", 30, 10, 3)]
        [DisplayName("期初金额")]
        public decimal QiChuJinE { get; set; }

        /// <summary>
        /// 余额=缴存金额+增值收益金额-已使用金额
        [NumericType("yu_e", "余额", 31, 10, 3)]
        [DisplayName("余额")]
        public decimal YuE { get; set; }

        /// <summary>
        /// 状态：正常,自管,退伙
        /// </summary>
        [StringType("zhuang_tai", "状态", 32, 10)]
        [DisplayName("状态（正常,自管,退伙）")]
        public string ZhuangTai { get; set; }

       
        /// <summary>
        /// 
        /// </summary>
        public FiscalFangWuFenHuZhangModel()
        { }

    }
}
